#include <cstdio>
namespace CERT_FIO_NO_FLUSH {

	void func_bad(const char* file_name) {
		char buffer[500];
		char w_data[500];
		FILE* file = fopen(file_name, "a + ");
		fread(buffer, 1, 100, file);
		fwrite(w_data, 1, 100, file);
		fclose(file);
	}

	void func_good(const char* file_name) {
		char buffer[500];
		char w_data[500];
		FILE* file = fopen(file_name, "a + ");
		fread(buffer, 1, 100, file);
		fseek(file, 0L, SEEK_SET);
		fwrite(w_data, 1, 100, file);
		fclose(file);
	}
}